creating api service - chrome app