SERVER-10177 Remove all Js instances of "throw 'string';" with "throw Error();"

Includes both the initial patch to remove all throws and patches for all failing tests

Signed-off-by: Benety Goh <benety@mongodb.com>