correct js script