connect angularJS fitness controller with rails fitbit API