I had to put the check for 'typeof console != "undefined"' back in, otherwise IE...