How do you generate a NXT / Ardor address using javascript only? I'm looking for a way to generate an nxt/ardor address using only a javascript library and without having to be online. Is there a js library that can generate a nxt/ardor account by passing in the secret passphrase as a parameter?
Codepen Example: http://codepen.io/satoshinakamoto/pen/ObGwXy?editors=1010

Yes, you can generate the nxt/ardor address by using the following function call: 

NRS.getAccountId('asdf'); //Generates the

NRS.convertNumericToRSAccountFormat(NRS.getAccountId('asdf')); //Converts that ID to RS (reed solomon) format


Found in html/ui/js/nrs.encryption.js



You will need the following html setup and js files to generate nxt addresses without the need to be online:

&lt;!DOCTYPE html&gt;
&lt;head&gt;
    &lt;meta charset="UTF-8"&gt;
&lt;/head&gt;
&lt;body&gt;

  &lt;h2&gt;Welcome&lt;/h2&gt;


    &lt;script src="js/3rdparty/jquery-2.2.0.min.js"&gt;&lt;/script&gt;



    &lt;script src="js/3rdparty/jsbn.js" type="text/javascript"&gt;&lt;/script&gt;
    &lt;script src="js/3rdparty/jsbn2.js" type="text/javascript"&gt;&lt;/script&gt;

    &lt;script src="js/util/extensions.js" type="text/javascript"&gt;&lt;/script&gt;
    &lt;script src="js/util/converters.js" type="text/javascript"&gt;&lt;/script&gt;
    &lt;script src="js/util/nxtaddress.js" type="text/javascript"&gt;&lt;/script&gt;

    &lt;script src="js/crypto/curve25519.js" type="text/javascript"&gt;&lt;/script&gt;
    &lt;script src="js/crypto/3rdparty/cryptojs/sha256.js" type="text/javascript"&gt;&lt;/script&gt;


    &lt;script src="js/nrs.js" type="text/javascript"&gt;&lt;/script&gt;
    &lt;script src="js/nrs.util.js" type="text/javascript"&gt;&lt;/script&gt;
    &lt;script src="js/nrs.encryption.js" type="text/javascript"&gt;&lt;/script&gt;





    &lt;script&gt;

    $(document).ready(function() {


      hello = NRS.convertNumericToRSAccountFormat(NRS.getAccountId('ahmin'));   

      $('body').append(hello);


    });

    &lt;/script&gt;

&lt;/body&gt;
&lt;/html&gt;