$ ->
  $(".photos").justifiedGallery rowHeight: 200, margins: 8

$(document).on 'turbolinks:load', ->
  $(".photos").justifiedGallery rowHeight: 200, margins: 8

Make the JustifiedGallery script work with Turbolinks 5.
Make the JustifiedGallery script work with Turbolinks 5.