Better structure on fs, test for js-use