adding jquery functionality