fix like function in js