<a id="search-listing" target="_blank" href="/map-search-property?&keyword=">
<button class="button white">Search for listings</button>
</a>
<script>
//jQuery
var projectname = $('h1.page-header').text();
var x = "/map-search-property?&keyword=";
var y = projectname.substr(0, projectname.indexOf(','));
var result = x + y;
$('a#search-listing').attr('href', result);
</script>