a small OOP exercise in PHP, using CSS3 and JS