fix app.js variable name, and remove test code