Initial code for iwritelists.js