 
 # non-browserify compatibility
 window.LC = {init}
-registerJQueryPlugin($)
+if window.$
+    registerJQueryPlugin(window.$)
 
 
 module.exports = {

      tools.Eyedropper,
    ]

  $el = $(el)
  $el.addClass('literally')

  unless $el.find('canvas').length
    $el.append('<canvas>')
  lc = new LiterallyCanvas($el.find('canvas').get(0), opts)
  initReact(el, lc, opts.tools, opts.imageURLPrefix)

  if 'onInit' of opts

LiterallyCanvas = require './core/LiterallyCanvas'
initReact = require './reactGUI/init'

