fixed JShint errors