HTML5 form generator based on JSON format (php class)