Modified lang.js and parse.js from r.js to work with node.