You are free to post modification questions in THE MOD CORNER. Product Support personnel do not participate in helping people modify their code.
I personally think you should just use the additional category extra fields which can be dropdowns checkboxes radios or text box and they will show correctly on the upload pages edit pages show photo pages etc. They are not searchable though.
Otherwise if you insist on modifying the default code you would be on your own to do so. I will say looking at your example the HTML is all wrong. Here is what valid input and select statements are http://www.w3schools.com/tags/tag_input.asp http://www.w3schools.com/tags/tag_select.asp