Refactored the instanced M4 behavior to its own yaml definition which makes editing the javascript so much easier