use $(window).load and apply it to the correct element