jsHint error corrections