Adds isActive() method to window class.