Refactored deps under init.js file