Update core.js

Fixed a critical issue with static and prototype members.
Added the `const` and `new` keywords.
Added the `finite` parameter to the `asFloat` method.
Added parameters to the `flat` method.