Can not use window.onload in the plugin page