work in both dartium and chrome