A snippet to easily get the screen size with javascript