angular_js factory call to Rails backend API and ng repeat results