make sure the button returned by js has correct markup