rgba to hex with opacity javascript