.ejs + .js files Chrome Uncaught Syntax Error: Unexpected Token ILLEGAL

The function call from .ejs that generates this exception :

<a href=javascript:addMarker(<%=log.longtitude%>,<%=log.latitude%>,<%=log.player_id%>,'<%=log.player_name%>',<%=log.team_id%>)>

Here is the .js function :

function addMarker(long, lat, player_id, player_name, team_id)
{

    old_marker = markers[player_id];
    if (old_marker == null)
    {
        window.alert('new marker id ' + player_id + ' team_id:' + team_id);
        marker = new google.maps.Marker({
            position: new google.maps.LatLng(long, lat),
            map: map,
            snippet: player_id
        });

        map.panTo(new google.maps.LatLng(long, lat));
        markers[player_id] = marker;
        // adding info window listener
        var infowindow = new google.maps.InfoWindow({
            maxWidth : 500
            });

        google.maps.event.addListener(marker, 'click', function() {
            window.alert('info window');
            infowindow.setContent('player_id ' + player_id + ' player_name ' + player_name);
            infowindow.open(map,marker);

        });
    }
    else
    {
        old_marker.setPosition(new google.maps.LatLng(long, lat));
    }
}