Updated for Chrome 31