fixed deleting and refactored popup.js
Merge branch 'master' of https://github.com/nflethana/pennapps2013f
hides tabs on delete now