Yep, or may be we could just return on the first found property, I guess. 
Also, this is still very rough since it just gives you a string <width>x<height> which is not really what we want. Actually, I want to use the screen size to provide easy swipe/touch support via the scripting interface.