Revert "Revert "History.js upgrading to v1.8b2""

This reverts commit 2e53756d865edfee1fcc5c3cac20dea34a7dea85.
Wrong revert!
Revert "masonry: Update according to its upstream"

This reverts commit 15568cad6ddc95c1ffc7ce6ffb312647133c9e56.