Ah, below it does set JSError (different case on the "e"). Is it case-sensitive?

Also, it might be better to have this (as some examples of checking JS errors in Selenium show) as an array in a global variable, so that we can list *all* errors that occurred.