getParam function

Wrapper around the params global variable