add compiling to app.js