clone form http://www.trentrichardson.com/jsonsql/