Server side for  dscript.js