Added javascript for saving move definitions to XML