Enabled support for JS asynchronous loading

* changed $mediaQuery to $fileAttr
* added async/defer support for JS files
* changed documentation to support new functionality
* fixed minor spelling/typos