testing window.device with alert