inital init for the js file