var $container = $('#container'); // init $container.isotope({ // options itemSelector: '.box', masonry: { columnWidth: 40, isFitWidth: true } });