added webkit compatability