fixed "for (var i in anArray)" external javascript can now safely for-loop-in over an Array