review my tiny app - code to html converter
nirmal: You should register an onChange handler for all of the form elements and update the preview automatically. Specifically, for the drop down box used to pick color themes.