added jquery; minor changes