         bind       = "load"
         load       = -> callback null
 
-      $('head')[0].appendChild (new KDCustomHTMLView {
-        cssClass, tagName, attributes, bind, load
+
+      document.head.appendChild (new KDCustomHTMLView {
+        domId, tagName, attributes, bind, load
       }).getElement()
 
   # #

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

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


      file = FSHelper.createFileFromPath url
      file.fetchContents (err, partial)->
        return  if err
        obj = new KDCustomHTMLView {domId, tagName, partial}

        if type is 'script'
          obj.once 'viewAppended', -> callback null
