rename structure.js to pv.js
fix unittests