default to mode 0666 in FS.open

The libc functionality remains as is (since it'll always pass the mode argument to FS.open), however, for users of the JS API I'd like to default the mode to 0666 when creating files (node does the same thing).