undo changes to extractCode, using grunt task instead