Could you use the `ext` variable here instead of forcing the `js` extension.