Help with moving my last AppleScript to JavaScript (moving projects to another TaskPaper document)

Have you given this script a look? Maybe you can get it to work just like you want!

http://support.hogbaysoftware.com/t/move-selected-taskpaper-items-to-chosen-project-km-macro