How to add elements to existing HTML using DomDocument?

Adding the new option on the client-side via JavaScript is out of the equation in what am trying to do.

I eventually solved the ish using regex.