Cleaned up the code for package dependencies and added dependencies needed in app.js and main.js