The JS code is not rendered for ajax calls - ajax calls where making double buttons.
And now the buttons and/or the data container can be added manually - the JS code checks if the element ID already exists before creating it.