Modals: Cleaned up JS a bit.