document.buns fix for Chrome