Fixed a few small issues in various js files. Fixes #251 and hopefully #244.
Merge pull request #275 from peterasujan/gh-pages

Fixed a few small issues in various js files. Fixes #251 and hopefully #...