JsHint fixes and added file for IntelliJ Idea