refactor(ng): put app.js inside closure