added sequential execution for app.js
added error handler for scripts