add images loaded plugin and make ajax work for masonry