Changed from main.js to modrewrite.js