You've changed it so that the index.html file has two of each button, using the same id. That seems dangerous. There are probably HTML validation tools that will complain about that.  I'd prefer to have separate ids for them.  (Or just have one copy that you move to the right parent or something.)