Fix #326 by remove redeclared variables

'wm' and 'window' were declared earlier using let, and re-declared here with the same values. Removing the second declarations fixes the "TypeError: redeclaration of let wm - kprpcClient.js:1073" error.