version 5.0.1, uploaded to TER

improve JavaScript for old / weirdly configured IE versions
consistency: replace occasional " by '
consistency: remove superfluous whitespace
PHP style: do not use function in for condition
PHP style: Update to TYPO3’s preferred all caps TRUE, FALSE, NULL