[WIP] js: replace NSPR usage by thin wrappers
[WIP] js: fix the standalone vs2010 build