fix infinite loop

Hey Lukas,

great article on netmagazine.com and good tutorial to show interaction between angular and socket.io.

When you've got two open browser windows everything works as expected. However as soon as you delete a note you run into an infinite loop. Fix is quick & dirty (not really DRY) but works.