Replaced fs.readFileSync with require().

This makes the module easier to browserify and basically more CommonJS compatible.