changed script.js to accept the init file