fix jsHint warnings