cleanup payload.js