split app.js, updated test page (app not working)