updates to work in other browsers