add jquery components and add masonry code