Issue #16: factorizing createModal function + adding global app state on body DOM markup