ASCII to binary function
<p>How to reverse this function? It creates a 80-bit binary code from the text, I found it on the internet but do not know how to reverse the operation and make the resulting binary code to restore the text.</p>

<pre><code>var ascii2bin = function(ascii)
{
    var bin = "00000000000000000000000000000000000000000000000000000000000000000000000000000000";
    for (var i = 0; i &lt; ascii.length; i++)
    {
        var code = ascii.charCodeAt(i);
        bin += ('00000000' + code.toString(2)).slice(-8);
    }
    return bin.slice(-10 * 8).split('').reverse();
}
</code></pre>