Moved each component inside an anonymous function for isolation. Fixed some issues. Moved events components like EventDispatcher in their own namespace. Added Progressive jpeg.