changed top in js