The only thing needed is to get the Mgen library and the blueprint that is generated by your model. This can either be done by configuring requirejs (or similar system that uses AMD) or by simply importing the scripts (this will set the mgen library and the blueprint on the window object ).