make all the js work