some js fix