Make minor JS style cleanup
Merge pull request #1693 from mc10/cleanup

Make minor JS style cleanup