Cleanup debug js output