Updated JS SDK example
Login