Fix issue with built files not including Event.js