Making the splash pg js more OOP