js housekeeping