Various tweaks

* Ran code through JSHint to check for inaccuracies
* Added new minified version
* Tested across the board