sale cleaning from javascrip