Why is heroku app not returning JSON?