a javascript component for creating zeroed arrays