Javascript changes
addpair changes