JS Modals

Replace CSS :target modals for JS modals. Ref #335.

We just need a way of showing a modal on page load for a new source (#addlayer), but that shouldn't block this.