Object oriented programming project to get DIV elements on page through Javascript