Seperated services into services/mainservice.js