Allow user to pass in onload event for error handling
Event listener added properly
Merge pull request #18 from AllisonLamm/master

Allow user to pass in onload event for error handling