Linkhanling in Javascript was broken

See http://develop.studip.de/studip/plugins.php/coreforum/index/index/fd5cbbf465c863e26a885fa80471e394?cid=28e888802838a57bc1fbac4e39f0b13a