Update homepageFunctions.js