Chat speech bubble based on entered nickname

I translated some old PHP code I found into javascript; it md5 hashes the name and creates a color based on that.