Parametred search?

Hi,
I am trying to make a dynamic query in node.js...

body: {
"query": {
"range": {
"timestamp": {
"lte": end,
"gte": start
}
}
}
}
}
start and end are a local variables wich i wanna put in the body ?

Is there any clue?
Thank you!