Fix completion of js quests.

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