Added handling for SPECIAL documents in improve.js