small changes to init.js