made the javascrips talk to each other