fixed broken javascript modules, fixed events_controller bugs