[javascript] How to detect the screen resolution with JavaScript?