move all dependencies into main.js