fix jsHint errors