javascript copy examples to query form