fix some JShint issues