adds path and files js