Respect source js files outside the asset pipeline

[Finish #37284657]