Handle undefined options
Use push to add new elements
Convert all data types to string using JSON.stringify
Commented the old function call that was throwing an error
Added input textarea.
vim session