Jslint and assocaited cleanup
Merge pull request #9 from michalc/master

Jslint and assocaited cleanup