refactorization
Added some configurations to JSHint