Update pManage.js

update add a main method to init the program