testing detection of viewport size with javascript