PLF-5788 fix js for save