Added 'window' as a parameter to the module-level anonymous function in st.js