site.js: code simplification