Bugfixes to market_source.js: referrer and initial_referrer weren't
being stored and retrieved properly.