updated js plugin