Support url parsing in browser environment