Update core.js

removed `class2type` fragments, updated `$.type`