Use production version of masonry.
Fix htmlunit issues with masonry by disabling javascript execution.

As soon as masonry library is included, HTMLUnit is executing it and
finds "Element" not defined. Only in home template the error is
stopping the execution, in all other cases is just showing a warning.