for..in doesn't loop all values in IE < 9, change test to fixed names