fs: PR-fix. Create the Stats object in JS.

As suggested by @trevnorris performance can be improved by instantiating
the Stats object in JavaScript rather than C++. This commit implements
that change.