Made example page work in IE

Added a check for console and profiler to make sure the examples work in IE. (IEs console does not have a time method and will stop the execution of the page on a JavaScript error).