Added Event Support and Fixed Global CORS