symlink node_modules directory in temp dir

To make module resolution possible for the copied templates also link
node_modules folder of jsdoc to the temp directory
fix typo

fix function call