php examples from fall 2013 PROG8020 php and javascript class