updated for background images and respective main js for functionality on a single page