Fix: JSON response not an array

Fixed a bug where if the JSON response was single item, it wasn't an
array, so the ng-repeat repeated the wrong stuff.