Microsoft recently released this tool to validate all the java script and HTML web resources on CRM on premise or online. Java script validated via this tool will handle cross browser support once it is out in next couple of months. http://www.microsoft.com/en-us/download/details.aspx?id=30151