non-idiotic reposition code in gapfill.js