remove console.log, it would have problems in IE