fixed some js