[Feature] change JS to JSON
[Feature] reduce file IO