moved js to common app.js