finally got AJAX to load up the teams and players from Rails side