 
     for object in images
       image     = null
-      isElement = if typeof HTMLElement is "object" then object instanceof HTMLElement else typeof object is "object" and object.nodeType is 1 and typeof object.nodeName is "string"
+      isElement = if typeof HTMLElement is 'object' then object instanceof HTMLElement else typeof object is 'object' and object.nodeType is 1 and typeof object.nodeName is 'string'
 
       if isElement
         image  = $ object
         object =
-          source:    image.attr('data-src') || image.parent().attr('href')
-          title:     image.attr('data-title') || image.attr('title')
+          source:    image.attr('data-src') or image.parent().attr('href')
+          title:     image.attr('data-title') or image.attr('title')
           thumbnail: image.attr('src')
 
       @_addToGallery object, image

  prefixes = ['Webkit', 'Moz', 'O', 'ms']

  if support is false
    for prefix in prefixes
      if element.style[prefix + 'AnimationName'] isnt undefined
        support = true
        break

  $('html').addClass 'cssanimations' if support is true
  support

    cid = ++counter

    data.thumbnail = data.source unless data.thumbnail

    fragments     = data.source.split '/'
    data.hashbang = fragments[fragments.length-1]

    @images[cid] = data

    @length++

