Minor JS consistency changes.
Merge pull request #476 from XhmikosR/js

Minor JS consistency changes.