removed JMVC.each call everywhere, replaced with native loops