Improved Compatibility for Webkit