This should work (and works for me). Though the last call to javascript doesn’t do anything (only the highest-precedence top-level language is used). html() will automatically use javascriptLanguage for script content, so autocompletion there will consult the language data for javascriptLanguage.
One thing that you might want to check is whether you have multiple copies of lang-javascript in your node_modules (npm ls --all). Language data works by identity, so if the javascriptLanguage package you import here is different from the one lang-html internally imports you might get a failure like this.