Set restify.bodyParser with mapParams set to true
Replace req.body with req.params
Small JavaScript clean up