How to Create and Save text file in JavaScript