Adds hex conversion to JS