Updated js for homepage