Made variable names camel case
Added r.uri = to getFinalUrl call in _prepareRequest