The mmf code is just a string object, and this is what I have put in my plugin php file.
<script src="<?php echo plugins_url( 'src/Runtime.js', __FILE__ );?>"></script>
// This is where the HTML5 runtime is actually started
window.addEventListener("load", windowLoaded, false);
// Calls the runtime
// First parameter : name of the canvas element
// Second parameter : path to the cch file. Images and sounds must lay beside this file
new Runtime("MMFCanvas", "<?php echo plugins_url( 'resources/charts3.cch', __FILE__ ); ?>");
<canvas id="MMFCanvas" width="304" height="195">
<p>Your browser does not support Canvas.</p>
I would have thought if there was a problem with this code, I wouldnt see the canvas or active objects at all.