Add JS Hint
Fix some issues raised from JS Hint