Html5-dialog functions seperate to dialogs.js for using in all project.