Removed unneeded setTimeout() in example which just threw a console error