changed cookie lib from default angular to custom one so can set expires