Refix epm deps
Use packages and separate app.js for less intrusive integration