added hex conversion example to javascript