php5 OOP and use of jquery demo