perspective_server.js: add params to constructor