move external script-loading back down to app.on('render')