JS bugs fixed, 
add, edit, and delete now work properly