Add platform test to GA experiment. Bug 936182.

GA experiment must run before including other scripts, so I pilfered & refactored the `getPlatform()` function from site.js. Experiment is temporary, so code duplication is as well.