Working around the $filter issue in local host by replacing with a simple Javascript loop.