fix js script