Window class added for handling js window object