solve the issue js