Added DELETE items and cleaned up js