separated init.js into multiple files