PHP class for pretty-printing nested arrays/objects using HTML, CSS and JavaScript, providing buttons to expand/collapse each level