renamed conflicting JavaScript functions FS#2915

This renames getSelection and setSelection to avoid conflicts with standard browser's own functions. This might break plugins relying on the DokuWiki implementation, but I see no way around that.