moving errordata out of provider and into comparejs