Added example to dao.html from StackExchange question.
Minor code cleanup.
Merge branch 'master' of https://github.com/foam-framework/foam