Convert letters in a phrase into proto-sinaitic using JavaScript

I’m wanting to convert a phrase or paragraph into proto-sinaitic.

Using the photo below as a reference, I want to convert any text within an element into older versions of our alphabet.

enter image description here

The mappings between alphabets would ideally match the image above, but I don’t know how to get these symbols into my code. I also don’t know how to swap these symbols once I have the mapping setup from modern Latin into proto-sinaitic. (and the other alphabets too for that matter).

My ideal starting phrase to convert from modern Latin (normal text) to proto-sinaitic would be the pangram “The quick brown fox jumps over a lazy dog.”