Trigger event before clearing the handlers
Compile JS