Moved badge deletion client-side JS into common.js.

Also made it more generic so it'll be easy to use the same code for
deleting issuers and brograms.
remove script tag for nonexistent csol.js file.