Remove wrapper around returned events
Some JavaScript cleanup