fixing looping issue w/ closure compiler