typo
toArray on Nodelist
clean js