more js fixes for getAddress