Add js to tap outside modal window and close it, more dialogues and text