Javascript 3 project, get/post messages (msgs stored in cookies only)