main.js can read files and added example test cases