Update core.js

Start implementing Potion