moves code js into js folder