Create core.js

Core javascript