add svgm js model (save and restore)