Added width and height methods to JsPageElement and also added a proper test for it