added fastclick, gzip and cors, added example event handler and state change