Updated for webkit browsers.