Updated the js for more functionality

only two more problems left to fix.
-need to find a way to display the count variable without adding on to
the previous count
- need to the dbl click edit function