adding js for homepage