Added in method to calculate box sizes in html rendering, then send them to the server.
Adds copy to clipboard functionality.