Refine background bulk add modal

* Move javascript code into module
* Clean up styles
* Add javascript tests
* Include a success state