moves javascript files to a linked list directory