updated js for loginza