Split init.js into 2 controller classes