node.js: Is it possible to pass jQuery code in server-side html response? <pre><code>var server = http.createServer(function (req, res) { if (req.method.toLowerCase() == 'get') { displayForm(res); } else if (req.method.toLowerCase() == 'post') { //processAllFieldsOfTheForm(req, res); processFormFieldsIndividual(req, res); } }); function displayForm(res) { fs.readFile('form.html', function (err, data) { res.writeHead(200, { 'Content-Type': 'text/html', 'Content-Length': data.length }); res.write(data); res.end(); }); } </code></pre> <p>I am following <a href="http://www.sitepoint.com/creating-and-handling-forms-in-node-js/" rel="nofollow">this</a> example, where form.html contains only html blocks.<br /><br /> My question is, can't jQuery/javaScript code be merged with form.html in server response? <br /><br />I have tried both external and internal js code but to no avail. </p>