Example based on @whitetigle code: https://gist.github.com/whitetigle/a75ecc8f3d2bcab736aab1240447478a
npm install
to install dependencies.npm run build
to compile the F# code to JS.npm start
to fire up a local server and open the sample web page.