add hex conversion of javascript