Fixed JSHint issues from previous commit