debugging the js errors on live