Fix survey js bug