Fix ordering and include jquery.cookie