javascript: rgb2hex