removed jquery end snippet