Fixed some JShint bugs