I don’t know if you need exactly BERT for your project but if you want something ready we have many USE models available in TensorFlow Hub 25
Here you can find conversion commands for TFjs:

  
      

      TensorFlow
  

  
    

Importing a TensorFlow GraphDef based Models into TensorFlow.js 5