Fixed a bug in JavaScript dummy resolver