Fix Olark post-lead capture

https://github.com/gocardless/splash-pages/pull/68 disabled the opening of an Olark window when a large prospect goes through lead capture. This re-enables it in a nicer way.
No need for scope, just declare a function. Scope is only used when you need expose the method externally.