Node.js compatibility.  Obviously, $ and window are not defined in Node.