library definitions
Add some javascript globals. Add dry-run option