some javascript oop coding
haha