Fix jshint warnings
Update readme.rst
Merge pull request #7 from rogr/master

Fix all the jshint warnings