Fix clear function error
Remove unused library in requireJS