fix plugins js and tests