Removed jQuery usage for OnLoad detection