Move load() after attaching event handler