changed bbox query to output JSON (default was HTML which was messing it up)