title: Call Masonry JS on Class Instead of Id
body: <p>I have some javascript code that is currently called on a div with the id of "lesson."  I'd like to call it on a class instead since I have more than one div to call it on. It's for a rails application.</p>
  
  <p>Here's the js:</p>
  
  <pre><code>$(function() {
    return $('#lesson').imagesLoaded(function() {
      return $('#lesson').masonry({
        itemSelector: '.box',
        isFitWidth: true
      });
    });
  });
  </code></pre>
  
  <p>Thanks for any suggestions!</p>