def old_javascript_array(array):
    "in case the browser doesn't support JSON, and to save some separator bytes"
    array = list(array)
    sepChar = ord(' ')
    chars_used = set(''.join(array))
    assert (('"' not in chars_used) and ('\\' not in chars_used) and ('<' not in chars_used) and ('&' not in chars_used)), "Can't use special chars (unless you change this code to escape them)"
    while True:
        if ((chr(sepChar) not in chars_used) and (not (chr(sepChar) in '\\"<&'))):
            break
        sepChar += 1
        assert (sepChar < 127), "can't find a suitable separator char (hard-code the array instead?)"
    return (((('"' + chr(sepChar).join(array)) + '".split("') + chr(sepChar)) + '")')
in case the browser doesn't support JSON, and to save some separator bytes
def old_javascript_array(array):
    
    array = list(array)
    sepChar = ord(' ')
    chars_used = set(.join(array))
    assert (('"' not in chars_used) and ('\\' not in chars_used) and ('<' not in chars_used) and ('&' not in chars_used)), "Can't use special chars (unless you change this code to escape them)"
    while True:
        if ((chr(sepChar) not in chars_used) and (not (chr(sepChar) in '\\"<&'))):
            break
        sepChar += 1
        assert (sepChar < 127), "can't find a suitable separator char (hard-code the array instead?)"
    return (((('"' + chr(sepChar).join(array)) + '".split("') + chr(sepChar)) + '")')