       file = FSHelper.createFileFromPath url
       file.fetchContents (err, partial)->
         return  if err
-        obj = new KDCustomHTMLView {cssClass, tagName, partial}
+        obj = new KDCustomHTMLView {domId, tagName, partial}
 
         if type is 'script'
           obj.once 'viewAppended', -> callback null

        bind       = "load"
        load       = -> callback null

      $('head')[0].appendChild (new KDCustomHTMLView {
        cssClass, tagName, attributes, bind, load
      }).getElement()

  # #

  @appendScriptElement = (type, {identifier, url, callback})->

    identifier = identifier.replace /\./g, '_'
    domId      = "internal-#{type}-#{identifier}"
    vmName     = FSHelper.getVMNameFromPath url
    tagName    = type

