rework js plugin