Revert "Fix JavaScript error resulting from call to .map"

This reverts commit a2ee4db537a50036af69101f618fd44fe6dba8ba.