Adding a basic cycling function to the map

This now works where the map can cycle between the first and the last
images based on a click. This uses the Backbone pattern to make this work.