cleaned some js