Callback now invoked

The javascript checks if the callbacks are defined, but the plugin never invokes them.