updated js for plugman