how to detect device width in javascript code example Example: device width js window.screen.availWidth