How do i change an element based on cookie value set in jQuery without reloading the page