added encryption libs to js
login using scrypt derived password