Optimized clean method fixed jslint issues.