anchor.diff:            <% end %>
             ><%= task_name %>
           </option>
  +
       <% end %>
       </select><br/>
   
  
positive.code:       }
  
        function set_options(options){
          // alert(options[0]["name"])
          //alert(document.getElementById("options"));
          // create a new div element
          // and give it some content
          //var newDiv = document.createElement("input");
  
negative.code:   <script type="text/javascript">
  
        function get_task_data(){
          //alert("getting task data");
  
          // http://stackoverflow.com/questions/1420881/how-to-extract-base-url-from-a-string-in-javascript
          if (typeof location.origin === 'undefined')
            location.origin = location.protocol + '//' + location.host;
  
          url = location.origin.concat("/v1/tasks.json");
          //alert("uri: " + url)
  
          var xmlhttp = new XMLHttpRequest();
          xmlhttp.onreadystatechange = function() {
              if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
                //alert(xmlhttp.responseText);
                var hash = JSON.parse(xmlhttp.responseText);
                parse_tasks(hash);
              }
          }
          xmlhttp.open("GET", url, true);
  