Members + Templates: code standards improvement for the profile field "clear" button JS. Also adds jsdoc.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8007 cdf35c40-ae34-48e0-9cc9-0c9da1808c22