re-factored DataService to use promises and invoke from default.js