localized non-global js files by moving them out of header.ejs