clean jshint warnings and add preserve-order to masonry gallery