Which browser are you using? Does your HTML5 export preset have threads or GDNative enabled? Are you testing from the editor's built-in web server (by clicking the HTML5 logo at the top-right corner of the editor) or by double-clicking the exported HTML file?
Also, please state the exact Godot version you are using instead of "latest", as "latest" is a moving target.