merged demo 3 and demo 2, since both are pretty simple
formatting
improving variable names
improving variable names
formatting
missing semicolumn
code cleanup
code cleanup
code cleanup
using the standard name convention to indicate that a variable contains a jquery object