rename core.js to app.js

added some helpers