deferred loading of main.js