Do JS setup immediately when possible

Most of what we're doing in main.coffee doesn't need to wait until domReady.