neating main.js