modularize javascript code
bump fs-extra 0.10.0 to 0.12.0