fix js call for save text