Update pManage.js

fix bugs