JS for Newsquid plugins