Initial work on DOM APIs and Rectangle