rename main.js to app.js
fix index checking bug
also part of the app.js renaming
updating service/api and client side
v0.1.0