Updated JS for adding address