fixing whitespace for related pages js