optimizations to the javascript
Merge pull request #18 from VinylFox/javascript_cleanup

optimizations to the javascript / cleanup