Better getUrlVars method
Small fix for JSHint