switch from jquery parents to closest and improve build.