Update to make compatible accross browsers