Added app.js base and modified package info
put configuration in a callback function