[utils] Correct octal/hexadecimal number detection in js_to_json