Fix some JSHint issues