update app.js

support loading of static files