Js Hint Integeration and Code Refactoring