(function handleDocumentReady (e) {
	MarvinJSUtil.getEditor("#sketch").then(function (sketcherInstance) {
		var templateAttributes = {
						'structure':"&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\n&lt;cml xmlns=\"http://www.chemaxon.com\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://www.chemaxon.com/marvin/help/formats/schema/mrvSchema_6_1_0.xsd\" version=\"ChemAxon file format v6.1, generated by v6.1.0\"&gt;\n&lt;MDocument&gt;\n  &lt;MChemicalStruct&gt;\n    &l