500 Error found! ReferenceError: window is not defined