removed console references to fix IE support