Some versions of IE do not have the window.console object available and will thus fail here. Either remove, or if you want it, NB has a log method which checks if console exists and otherwise. Its $.L().