Here's some code (view source) for embedding a Real .rm file in HTML, with Javascript controls.