updated getSelection to DWgetSelectin in script.js