fix plugin js