fixed stuff with main.js