refactor site.js; fix update file list