Fix JavaScript lint errors, missing semicolons and parseInt second argument
Merge pull request #892 from lancewillett/master

Fix JavaScript lint errors, missing semicolons and parseInt argument