I am developing a web project that uses Alfresco as CMS, and I have just discovered the Alfresco Javascript API.
How to copy a file from an specific Alfresco folder to another folder using Alfresco Javascript API?
Below is the code for coping node in using alfresco javascript.
newNode = node.copy(destNode);
The "newNode" object will contain new node object and destNode and node where you want to copy the node.
Below is thr link for alfresco javascript api documentation which will be use full for you for this kind of operation.