LB-1662 Refactored requirejs clear cache method.

Use a object instead of an Array.