Get rid of some javascript errors.