A bunch of minor fixes

  * Added IntelliJ IDEA workspace to .gitignore
  * Fixed mixed tabs and spaces (replaced tabs with spaces)
  * Fixed typo
  * Fixed inappropriate JSDoc params
  * Added missing semicolons and proper indent