now working in browser too