js undefined google bugfix