Update core.js

Added support for the AMD and CommonJS module patterns.