Fix JS access of parent SHA for history view