Flags: Fixed failed tests
Flags: Fixed failed tests

Not using 'let' for the 'key' variable in the for loop so moved the code inside of the for loop into its own method to protect the key variable.
blandblom/js-libraries,blandblom/js-libraries