added exclusions and added regexp for processing files referred by requirejs