Remove init.js, move required functionality to relevant files