[javascript] Using import fs from 'fs'