clean up each bugs code to Backbony