Adds masonry JS into layout. Changes plugins.js to include v3 of plugin.