Update core.js
Merge pull request #1172 from dahinir/patch-1

Update core.js