how to know display size of a device in javascript code example Example: device width js window.screen.availWidth