adding jquery and non jquery version