removed console.log outputs, since those raise errors in older IE