I was using javascript to obtain the my display resolution. The following code gave me the result of 1440 x 900 for my Macbook Pro
var screenWidth = screen.width;
var screenHeight = screen.height;
However, when I go check display setting of my Mac. It shows 2880 x 1800. I'm wondering if I was on the wrong track on getting the resolution of a display?
