added cookies

added javascript for cookies so that we can track master and clone servers