$(document).ready(function() {
  pattern = /-[a-z]([0-9]+)\.html$/;
  url = window.location;
  match = pattern.exec(url);
  //alert(match[1]);
  //console.log(match[1]);
  $.get('/ajax/log_event_view/'+match[1]);
}); // $(document).ready(function()
