fixes js errors
injects foursquare authentication token on session