moved init JS to separate script file