Params on javascript

Hello,
I´m sure that someone of you can help me with this issue.
I´m trying to create a node property with "params", but I must be missing something, because nothing happens. I neither received a console.log error, nor the param is working properly.
I could console.log the requested variables, so that the request of the app is working, too.

Thank you for your help.

app.post("/person/originalname/add", function(req, res) {
var originalname = req.body.originalname;
var id = req.body.id;

session
.run("MATCH (n) where id(n) = $idParam SET n.original_name = $originalParam RETURN n", {
originalParam: originalname,
idParam: id
}
)
.then(function(result) {
res.redirect('/');

})
.catch(function(error) {
  console.log(error);
});

});