Dogs CRUD in 30 lines of Javascript