calc hash in browser