promises on routes
renamed www file as required by cordova