PHP classes to quickly generate HTML/Javascript code