added 2 functions to router.js
added git ignore