Saving page dimensions from JS now. This is bad all values are same. Reverting to my previous idea