Update core.js

Massive edits.
Upping to 0.5