Small cleanups, refactoring. Enabled JsHint validation