Update core.js

Mushy suggested this one and it's a pretty good one.