trying to fix the js problem