fixed reference to options.esc instead of options.escape