#408. Added js, form and saving.
#408. Merge with last changes.