added comments to primer-history.js