spliting parmad3.js from template