Rename pnf to pnf.js
Fix tests