edited main.js