Adding HTTParty and trying to condense Javascript