create init.js

move code from test.module.php