loading on both $ and windowload