JSHint errors [fixed]