Davetest

For review of apps.js
you should also want to handle the failure scenario and show a notification on the client side.