change borrowings state in remote js