You can buy this project and download/modify it how often you want.
See the Rhino JavaScript API for cucumber-rhino.