Using onload now, but multiple instances compromise each other