fixing related content js error

@ironsidevsquincy