Lacking JS provides a WebAssembly implementation of the lacking framework's APIs. Use this module if you are going to target a Browser-based game.
The rally-mka project can be used as reference.