move script to one app.js