Loop Html Elements Javascript Editor