Update core.js

Outdated.