LookBehind Alternative Regex

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

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