Javascript snippet for multilingual hotkeys support