update .gitignore, add tests, create fanmail.js