[jan] Fix JavaScript errors with Internet Explorer 8 (Bug #11940).