Add options:width, clone flag. onBeforeFadeIn function can apply an element argument and should return boolean. onAfterFadeOud can apply an element argument and should return result of processing. Add a processing that binding .on() click event to Document to work for appending html elements. Add a function that lock scroll while the modal is showing. Replace .hasOwnProperty() instead of typeof.