now works on chrome (for x of NodeList is unsupported)