cleaning up init.js