Added jquery code for instrumentation