fix some js bugs