fix js plugin