updated core.js to pass grunt js linter