fix js bug, add tests, and use letterhead