Refactorization part 2: rename site.js to index.js