targeting the window width in javascript code example Example: device width js window.screen.availWidth