Some javascript debugging changes