Shift Widget: fix bug preventing save
update generated javascript