added js to auth gallery passphrase