[bug 930109] Infer FxOS version from UA

This adds some JS to infer the FxOS version from the UA in the Firefox
OS form.