added the main.js file + updates on requiring proper 'q' module name