modifying main.js