From http://selfmade.lemkewebdesign.de/js-arrays.php