moved dependeny from autoloader to jsloader; exported EventDispatcher class as a main module