Merged core.js

Improve performance by less calls