Params on javascript

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."/person/originalname/add", function(req, res) {
var originalname = req.body.originalname;
var id =;

.run("MATCH (n) where id(n) = $idParam SET n.original_name = $originalParam RETURN n", {
originalParam: originalname,
idParam: id
.then(function(result) {

.catch(function(error) {