added html wrapper and refactored jquery code
custom way to close the modal
refactored jquery code
added CSS styles