script.js housekeeping