Implements more compatible iteration

For those lovely older browsers