assert works in browser