debugging the js