bugfix for googles latest javascript changes