cleanup of flood.js