Move carousel JS code into it's own file

More house cleaning.