Update core.js

Fixed a spelling error.