added jbuilder to pass product information as JSON to eventually use AJAX to update gallery
created click AJAX request to home index json page for gallery information
successfully updating page via AJAX requests to change gallery content, bug present however that prevents proper display
refactoring gallery javascript update method