Ignoring intellij project files
Fix broken tests
Resolved jsHint problems

Added semicolon.
Added "use strict".
Changed indentation of if statement.