JShint warning fixes