init the js part