 
         options.id = vex.globalID
         vex.globalID += 1
+
+        # Vex
+
+        options.$vex = $('<div>')
+            .addClass(vex.baseClassNames.vex)
+            .addClass(options.className)
+            .css(options.css)
+            .data(vex: options)
 
         # Overlay
 


    showLoading: ->
        vex.hideLoading()
        $('body').append('<div class="vex-loading-spinner"></div>')

window.vex = vex

        # Inject DOM and trigger callbacks/events

        $(options.appendLocation).append options.$vex

        # Call afterOpen callback and trigger vexOpen event

