js scripts swaped