Added in handling for DOMContentLoaded for Mozilla and window.onload, just in case.