fixed the problem of window being undefined, but now my computer isnt able to use my hmtl file.