added destroy and update method and passing specs
working js update and delete