Minor JS cleanup.
Merge pull request #452 from XhmikosR/js

Minor JS cleanup.