reversed main.js