fix some js warnings