It is valid to [wrap any tag in an anchor](http://davidwalsh.name/html5-elements-links) so I don't understand the point of using JavaScript for this.