Change download location on browser through javascript

uniquify: To avoid duplication, the filename is changed to include a counter E.g. it could make changes to browser or computer settings. safe: The download presents The absolute URL that this download initiated from, before any redirects. A file path relative to the Downloads directory to contain the downloaded file, 

$wgExtensionFunctions [] = 'wfGoogleAnalytics' ; function wfGoogleAnalytics () { global $wgOut ; $wgOut -> addScript ( '