nl_tokens: Expands a URL that may or may not be relative to base .
pl_tokens: function expandUrl ( url , base ) { if ( ! base ) return url ; if ( url . match ( / ^(\/|https?:\/\/) / ) ) return url ; if ( base . substr ( base . length - 1 ) !== '/' ) { base = <mask> + '/' ; } return base + url ; }