Instead of using each use the jquery method on the selector

This is more succint...