Check dependencies and fix angularjs version to angular-cookies