wrote js for contacts