refactoring js
change js
Revert "change js"

This reverts commit e4de9aba502ee4a4cdc08cae7250022134d9dd63.
change dirfilefactory
add_test_dirfile