fix plugin js loading bug