SERVER-8618: add context to JS exception messages