use closest() instead of parents()

see http://api.jquery.com/closest/
Merge pull request #2 from anthonylebrun/master

use closest() instead of parents()