Javascript fix - "for ... in ..." changed to "for (;;)"

Change-Id: Ifa22fbd1baf2c63d5a09eae4a6f0216dc1652994