exclude files with javascript 1.8 syntax