replace patch by browser independent version