update inline js script