Moved super into endjs block.