Cleaned up a few lines of code
changed update_counter function to use jquery to count DOM elements as opposed to manual counter. Now works within success handler of PUT request in todo.js