adding some js to get the carousel auto cycle working