modified app.js for new userscript