js debugging updated