Use a custom jQuery event to trigger `cocoon:before-insert`.

This allows the manipulation of event object to be read in the calling context.
I added `event_aborted(event)` function that checks if the handler set `event.abort` to be true.

In before-insert event, I've used it to jump to the next iteration, if the event was aborted