added polyfills and fixes, now bigquery should work