Optimize JavaScript

JavaScript processing will make the browser pause the construction of the document object model unless the async attribute is used or the script is deferred. This will delay the time to first render.