made it work with webkit