updateProfile without refresh javaScript