   return sketches[index]
 
 getSketchByID = (sketches, id) ->
-  console.log id
   regexp = new RegExp('^' + id)
-  console.log regexp
   if !id.match(/^[0-9]+/)
     return null
   for filename in sketches


links = """
<div class="links"><a href="/random">Random</a> - <a href="/date/2015">2015</a> - <a href="/date/2016">2016</a> - <a href="/tag">Tags by freq</a> -
<a href="/tag?sort=alpha">Tags by alpha</a> - <a href="/journal">Journal</a></div>
"""
header = """
<style type="text/css">body { font-family: Arial, sans-serif; }

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
  <script src="https://npmcdn.com/imagesloaded@4.1/imagesloaded.pkgd.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/masonry/4.0.0/masonry.pkgd.min.js"></script>
  <script>
    $(document).ready(function() {
      $('.followup').click(function() {
        filename = $(this).closest('.grid-item').attr('data-filename');
        $.ajax({method: 'POST', url: '/followup/' + encodeURIComponent(filename)});
      });
    });
  </script>
  """ + links 
footer = links
masonry = "<script>$('.grid').imagesLoaded(function() { $('.grid').masonry({itemSelector: '.grid-item'}); })</script>"
