modularize index.js, switch repo link position