refactored, removed requirejs dependeny