load pastes async with javascript