refactoring no laudos.js