[fix] compatibility with browsers