tune up for jquery and non jquery usage