Revert "[3.0] Fix the broken build for JavaScript plugin"