Calling val(text) now clears an element of its existing text, more like jQuery.
Merge pull request #2 from michaelcarter/master

val(text) now clears existing value before inserting new one