Fixed invalid object error in ionic; no function in .config!