Revert "Fix buf is undefined in IE"

This reverts commit e6b26688cda301e839ddb184c8ee82bb398cefaf.