Remove init.js and moved to logic to other parts.