Sometimes you want to generate a popup that has the same size every time, however, the form can have a lot of checkboxes or other elements. To create a scrollable list of choices: put a div tag inside a table cell. Give that tag a width and height of hundred percent. Then, set the overflow property so the browser creates a scrollbar when the table cell gets completely filled.
A nice plotting library using the canvas tag and some javascript: PlotKit.