Fix JavaScript lint errors, missing semicolons and parseInt argument