Updated preview pane

Used an extremely hackish solution to troubles with the </script> tag in the JavaScript string. 

Updated the preview pane to be a div, which can read in HTML input; unfortunately, this doesn't work with the JS. Probably need to change this to an iframe.