Moved app.js into lib