Bug or i missed something with JS trasnformation

Hi, im stuck.
Simple JS trasformation to calibrate my sensor.
This code works:

(function(h){
return h-5;
})
(input)

But if i change - to + this script does not work:

(function(h){
return h+5;
})
(input)

Help me.