Do JS setup immediately when possible