 # =====
 'use strict'
 
-# Set a reference to the global object within this scope.
-root = @
-
 # Set a reference to jQuery (or another `$`-aliased DOM library).
 # If it doesn't exist, set to false so oriDomi knows we are working without jQuery.
 # oriDomi doesn't require it to work, but offers a useful plugin bridge.
-$ = root.$ or false
+$ = if window.$?.data then window.$ else false
 
 # `devMode` determines whether oriDomi is vocal in the console with warnings and benchmarks.
 # Turn it on externally by calling `OriDomi.devMode()`.

      return @

    # Record the current global styling of the target element.
    elStyle = root.getComputedStyle @el
    @_originalStyle = {}
    @_originalStyle[key] = elStyle[key] for key in modifiedStyleKeys




# Only create bridge if jQuery (or an imitation supporting `data()`) exists.
if $
  # Attach an `oriDomi` method to `$`'s prototype.
  $::oriDomi = (options) ->
    # Return selection if oriDomi is unsupported by the browser.
