Improvements to scripts/runiql.js