added *.tmp to gitignore
changed favorites.js so that now max page number is taken from
'total-pages'