Declaring the instance variables inside the class
Getting the pattern as a prototype inside class and modifying windows.onload function
Getting the pattern as a prototype inside class and modifying windows.onload function