PHP classes to quickly create HTML/Javascript code