Incorporate pencilformat.js, pass unit tests.
Stash work