fix jsHint errors in branch 2.0.0

Same goes for here.