Prevent double-calls of quest completion for Js.

Signed-off-by: Robert Xu <robxu9@gmail.com>