I am not sure what exactly are the errors but usually it is client-based, which means you cannot stop that.
On the other hand, the advantage of using a CSS menu is that it can be properly crawled by search engine. If the JavaScript menu builds URL, then there is a chance that the search engine...