JS Hint fixes