move masonry build script to script.js