Fixed for newer? versions of node.js.

options was not declared yet was getting accessed.