Use named module AMD syntax for defining paper.

Closes #261.