The HTML-element should work. Did you check the console in the developer tools of the browser for errors (F12 in Chrome and Firefox)?
Additionally it is an option to add the Javascript to the page using the Run Javascript step of the Toolbox-plugin. Install the plugin and create a workflow triggered by Page is Loaded:
Then add the Run Javascript step and paste in the javascript without the tags.
Update: Just realized I added the plugin to Wix-website and not Bubble. Nevertheless, the Developer Tools Console (F12) should provide you with information why the plugin does not work.
Did you check wether there are errors in the console of the Developer Tools (F12 - tab Console)? There might be information which can help you solve the issue.