Set window.please at the end of the code and not the beginning.