how to locate a device with javascript code example Example: javascript get device window.navigator.userAgent