Indent functions at end of search.js properly
Update result data when deleting draft and re-render details box