Generating ExtJs Code with PHP