CMS-3710 LiveEdit - Re-implement ItemView.getDimensionsFromElement without using jquery