fix to js to apply to the event to the global document object - it wasn't triggering
Merge pull request #1 from anazar/master

Fix for ajax:success event handler.