Init events
Generated JS