Update file to use jQuery to get height and width

Use jQuery to get height and width of HTML DOM objects instead of directly pulling from HTML DOM.