Revert "Update modal.js"

This reverts commit 784e7ab7a9058a8d46d9bc17acb9930173639a71.
Revert "Update tooltip.js"

This reverts commit cc525b81f4198001a5e3093f20a626973c5940d5.