Back to window. Making the JS simpler