Fixed JS Hint errors