use plain prototypes instead of pjs

Supersedes #32