fix some JS issues