JSHint validation errors [FIXED]