Update core.js

Changed the anonymous define into a named define so the script can still be included via script tag when using requirejs.