fix js scripts