add router.js
add *.swp to .gitignore