DNM:  Remove init.js, move required functionality to relevant files

Removes the old init.js, moves relevant code to relevant files.