order comments correctly (using JS)