Restructuring data, repairing javascript, and squashing bugs