used jquery features properly