A small Game engine using JavaScript and OOP