Added Check for console profiler (end)

Checking if the profiler + 'End' method is present to keep IE from throwing JavaScript errors