Changed filename from main.js to modrewrite.js