Fix onComplete in console

Right now the example in RTFM does not work. Firing the 'complete' event on the JS Console object will just return a JS error when provider is not set.