Fixes controller to respond to json correctly and adds new parsing method within the jquery iteration.