updated debug js