Added strict mode.

I didn't add `options.strict` to the JavaScript API section in the README file, because I don't think it's of much use in a JS environment.