adding js for captions on home page