update maguire.js to handle current JSON response from maguire