Added if-statements to jslint_happiness.

Hi,

Does this seem like a valid tweak?