Removed debugging print statement and changed modal_result to js_result to
reflect where it's used.