Getting information from a user-provided account list into an array in Javascript
<p>Users will paste an account list in this format, with a username, a colon, and a password on each line.</p>

<pre><code>    username1:password1
    username2:password2
    username3:password3
    username4:password4
</code></pre>

<p>What is the <strong>best</strong> way to separate each line and then each part in Javascript? I'd really like it to be as simple as accounts[1].username or accounts[3].password to retrieve data. Thanks!</p>
