If you have any need to cleanly integrate with a database back end, I highly suggest taking a look at knockout.js. It provides a nice, clean way to incorporate auto-updating data elements into your webpage. Additionally, the website knockout.js provides some awesome interactive tutorials.