Fixes #1
Use old-fashioned for-in instead of .forEach because it's not supported by ie8.