fixed issue #6

it was caused by a weird combo of jQuery's overriding this & the
callback not being a function