Minot fix in the javascripts to remove console errors