[WIP] a couple of improvements to the js, no functional changes at all

just calling the masonry layout function declared above