Need help in creating workspace like appinventor

Thanks for your response.

so far we checked the above files you mentioned above and imported in my website and tried to integrate the backpack using

    var opts={

	collapse : true,
	disable : true,  
	trashcan : true, 
	comments:true,

	css : true, 	
	rtl : false, 
	scrollbars : true, 
	sounds : true, 
	setMetrics:{
		absoluteLeft:100,
		absoluteTop:10,
		contentHeight:100,
		contentTop:10,
		contentLeft:10,
		contentWidth:10,
		flyoutHeight:undefined,
		flyoutWidth:undefined,
		svgHeight:undefined,
		svgWidth:undefined,
		toolboxHeight:undefined,
		toolboxPosition:undefined,
		toolboxWidth:undefined,
		viewHeight:10,
		viewLeft:100,
		viewTop:10,
		viewWidth:100
	}

}
`  Blockly.Backpack(Blockly.getMainWorkspace(),opts);`

but after adding above line to code getting this error

i can't the error can u please solve it please

all the code is in javascript only....