Added docs to window.java, changed var seconds to milliseconds