Modify require calls in _main.js template