attempt to get this working for ios safari