Fix minor code smell issues
Merge pull request #119 from wmde/jsCodeSmell

Fix minor code smell issues