 
 		@CSS = new CUI.CSSLoader()
 
-		@getPathToScript()
 		trigger_viewport_resize = =>
 			console.info("CUI: trigger viewport resize.")
 			Events.trigger

	CUI.__downloadDataElement = nodes[1]
	CUI.DOM.append(document.body, nodes)

if not window.addEventListener
	alert("Your browser is not supported. Please update to a current version of Google Chrome, Mozilla Firefox or Internet Explorer.")
else


	@getPathToScript: ->
		if not @pathToScript
			scripts = document.getElementsByTagName('script')
			cui_script = scripts[scripts.length - 1]
			if m = cui_script.src.match("(.*/).*?\.js$")
				@pathToScript = m[1]
			else
				assert(@pathToScript, "CUI", "Could not determine script path.")

		@pathToScript

