JS: remove some needless variables
GUI: sort documents by date
Revert "remove onDataChange now that we have an explicit save button"

This reverts commit e12608e856173f802e1315e0ce6492358fd5d1c3.
Remove save button. Save data each time it is modified
update static version