Fixed require references in main.js