.gitignore: ignore .patch and .diff files
utils.js: correcting botched indentation in canonicalize()

adding second param to docstring