Get rid of some JS warnings