Javascript files for adding items from a list to another list