Simulate user interaction in jQuery application