Get UserAgent from JS to avoid spoofing.