mirada alternativa regex

//(?<!filename)\.js$

^(?:(?!filename\.js$).)*\.js$
Grieving Gharial