Move editor and bug page out of cbugg.js