Clone now returns JSON
Script for calling the clone and browse functions.