fix broken debug js