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

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


      tools.Eyedropper,
    ]

  if [' ', ' '].join(el.className).indexOf(' literally ') == -1
    el.className = el.className + 'literally'

  unless el.getElementsByTagName('canvas').length
    el.appendChild(document.createElement('canvas'))
  lc = new LiterallyCanvas(el.getElementsByTagName('canvas')[0], opts)
  initReact(el, lc, opts.tools, opts.imageURLPrefix)

  if 'onInit' of opts
