added more events
added compiled javascript