Added optional property so type == 'html' can be an uploaded file as well as handwritten code.