Moved code for updating li elements

This is a preparatory commit for a later change on smarter
updates when several users are editing at the same time.
Minor change of a comment
Changed some comments in scripts.js
Merge pull request #87 from fredrikpersson/move-li-updates

Moved code for li-updates