     window.update_user_photos = (user_photos) ->
         container = $('<div />')
         for user_photo in user_photos.product_photos
-            container.append(Mustache.render(templates.product_photo_template, user_photo))
+            container.append(
+                Mustache.render(
+                    templates.product_photo_template, user_photo))
         $product_form_wrapper.find('.product-photo:last').after(container)
         ($ '.fetch-more-user-photos').data('maxId', user_photos.max_id)
 
     window.render_user_photos = (user_photos) ->
         $product_form_wrapper.find('.product-photos')
-            .replaceWith(Mustache.render(templates.product_photos_template, user_photos, product_photo: templates.product_photo_template))
+            .replaceWith(
+                Mustache.render(
+                    templates.product_photos_template, user_photos, {
+                        product_photo: templates.product_photo_template }))
 
     window.render_user_photo_feed = (user_photos) ->
         $product_form_wrapper.find('.photo-feed')
-            .replaceWith(Mustache.render(templates.user_photo_feed_template, user_photos, product_photo: templates.product_photo_template))
+            .replaceWith(
+                Mustache.render(
+                    templates.user_photo_feed_template, user_photos, {
+                        product_photo: templates.product_photo_template }))
 
     window.fetch_user_photos = (callback = render_user_photos, options = {}) ->
         $.ajax

            data.colors = $.map(data.colors.split(','), (color) ->
                {value: color, name: 'color'})
        update_product_form(data)
        update_h2(Mustache.render(templates.stores_h2_edit_template, {name: data.name}))
        render_user_photos {product_photos: data.productPhotos}
        fetch_user_photos(render_user_photo_feed, {product_slug: data.slug})

    render_new_product_form = (data) ->
        update_product_form(data)
        reset_h2()
        unless gon.authenticated is false
            fetch_user_photos(render_user_photo_feed, {product_slug: data.slug})

    # build csv of label data
    # i.e. size: small,medium,large

                            fetch_and_render_product_widgets()
                        else
                            ($ @).removeClass(hide)
                            ($ '.form-errors-wrapper').html(
                                Mustache.render(
                                    templates.form_error_template, {
                                        errors: response.errors}))
                            $window.scrollTop(($ '.form-errors-wrapper'))
