Fixed jsHint errors