getUser js method added