Pure vanilla javascript dialog/modal