Modal Refactoring

Removing direct `nib()` calls, and adding targeting classes for where JS templates should be generated/inserted.