fixed app.js to work with lib folder