even simpler; asJavascript on the whole array