+ fixes for "clearing.js"

- removed unused / double variables (need a review line: 58 + 63 - 66) 
- fixes code-style