This should work now

Well lesson learnt that's how you write a node js function with params