Fixed the error on the modal when updating fields with single or double
quotes.
Removed debugging print statement and changed modal_result to js_result to
reflect where it's used.