updated constructor and unit-tests. juicy cookie now has a string value domain by default and uses location.hostname to create a default domain if one is not given