moved puton application to the top of app.js