define last() since array isn't patched anymore.
use $ prefix for dom elements
Merge pull request #3 from fedwiki/ward/last

Ward/last