Refactored javascript service layer
Created abp utils class