Fixed some JShint errors