move script to app.html