Add imagesLoaded function to pins/index.js.erb to fix scrolling issues