Update router.js

changes done for bulk save of edited items.