some js fix stuff