shifted code to backend. now using foursquare rails api