added window listener to JS-file for blocking menu