fixing issue with functions.js not being on all pages