I added some javascript that keeps basic state on the page including the cursor position and the ability to modify the boxes