Fix build step for JavaScript plugins