     @ajax  = ajax
     @name  = '__lovely_jsonp' + new Date().getTime()
     @param = ajax.options.jsonp
-    @param = 'callback' if typeof(@jsonp) isnt 'string'
+    @param = 'callback' if typeof(@param) isnt 'string'
     @param += "="+ @name
 
     @script = new Element 'script',


  # XMLHttpRequest dummy methods
  setRequestHeader:   ->
  onreadystatechange: ->
    @readyState = 4

    @ajax.responseJSON = data
    @script.remove()

    @onreadystatechange()

